import request from "../request";

export async function getOrderPage(params) {
  return request({
    url: "/api/app/search-order",
    method: "post",
    data: params,
  });
}

export async function registerInCar(params) {
  return request({
    url: "/api/app/check-in",
    method: "post",
    data: params,
  });
}

export async function getPresentDetail(params) {
  return request({
    url: "/api/app/get-present-detail",
    method: "post",
    data: params,
  });
}

export async function appOrder(params) {
  return request({
    url: "/api/app/order",
    method: "post",
    data: params,
  });
}

export async function paySuccess(params) {
  return request({
    url: "/api/app/pay-success",
    method: "post",
    data: params,
  });
}

export async function applyChange(params) {
  return request({
    url: "/api/app/apply-change",
    method: "post",
    data: params,
  });
}

export async function addImage(params) {
  return request({
    url: "/api/app/add-image",
    method: "get",
    params: params,
  });
}
